<?php
    $show_about = "select * from `about`";
    $display    = mysql_fetch_assoc(mysql_query($show_about));
//    print_r($display);
//    exit;

?>
<div class="box">
    <!-- Box Head -->
    <div class="box-head">
        <h2>About Us Editor</h2>
    </div>
    <!-- End Box Head -->

    <form action="actions/about_update.php" method="POST">

        <!-- Form -->
        <div class="form">
            <p>
                <span class="req">max 1000 symbols</span>
                <label>Description<span>(Required Field)</span></label>
                <textarea class="field size1" rows="10" cols="30" name="content" ><?php echo $display['about_text']; ?></textarea>
            </p>
            <p class="inline-field">
            <table width=70% cellspacing="5px">
                <tr>
                    <td><label>Contact No.</label></td>
                    <td> <p class="inline-field">
                         <input type="textbox" name="phone1" class="field size3" value="<?php echo $display['phone1'] ; ?>" />
                         <input type="textbox" name="phone2" class="field size3" value="<?php echo $display['phone2'] ; ?>" />
                        </p>
                    </td>
                </tr>
               <tr>
                   <td><label>Fax</label></td>
                    <td colspan="2"><input type="textbox" name="fax" class="field size3" value="<?php echo $display['fax'] ; ?>"/></td>
                </tr>
                <tr>
                   <td><label>E-mail</label></td>
                    <td><input type="textbox" name="email" class="field size4" value="<?php echo $display['email'] ; ?>"/></td>
                </tr>
                <tr>
                   <td><label>Address</label></td>
                    <td colspan="2"><input type="textbox" name="address" class="field size4" value="<?php echo $display['address'] ; ?>"/></td>
                </tr>
                <tr>
                   <td><label>Zip-Code</label></td>
                    <td><input type="textbox" name="zipcode" class="field size3" value="<?php echo $display['zip_code'] ; ?>" /></td>
                </tr>
             
            </table>
        </div>
        <!-- End Form -->

        <!-- Form Buttons -->
        <div class="buttons" >
            <a href="admin.php?page=about" > <input class="button" value="Back" /> </a>
            <input type="submit" class="button" value="Update" />
        </div>

        <!-- End Form Buttons -->
    </form>
</div>

